package com.szeldon.declatest.exec.events;

import java.util.Date;

import com.szeldon.declatest.exec.result.ScenarioExecutionResult;

/**
 * Event for end of scenario's execution.
 * 
 * @author szeldon
 * 
 */
public class ScenarioExecutionEndExecEvent extends TestSuiteExecEvent {

    private ScenarioExecutionResult result;

    /**
     * 
     * @param scenarioId
     * @param eventDescription
     * @param eventDate
     * @param result
     */
    public ScenarioExecutionEndExecEvent(String scenarioId, String eventDescription, Date eventDate,
            ScenarioExecutionResult result) {
        super(scenarioId, eventDescription, eventDate);
        this.result = result;
    }

    @Override
    public String toString() {
        return "ScenarioExecutionEndExecEvent [" + super.toString() + "; result=" + result + "]";
    }

    public ScenarioExecutionResult getResult() {
        return result;
    }

}
